﻿using System;
using System.Collections.Generic;
using System.Diagnostics.CodeAnalysis;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Star.Tools.Attributes
{
    ///// <summary>
    /////显示的列名
    ///// </summary>
    //public class DisplayNameAttribute : Attribute
    //{
    //    public string ExcelDisplayName = string.Empty;

    //    public DisplayNameAttribute(string excelDisplayName)
    //    {
    //        ExcelDisplayName = excelDisplayName;
    //    }
    //}

    /// <summary>
    /// 用于禁用工作簿列中的文本包装的属性
    /// </summary>
    [ExcludeFromCodeCoverage]
    public class DisplayNoWrap : Attribute
    {
    }

    /// <summary>
    /// 用于从工作簿中排除属性的属性
    /// </summary>
    [ExcludeFromCodeCoverage]
    public class DisplayHide : Attribute
    {
    }

    /// <summary>
    /// 用于指定工作簿中列的宽度
    /// </summary>
    [ExcludeFromCodeCoverage]
    public class DisplayWidth : Attribute
    {
        /// <summary>
        ///
        /// </summary>
        /// <param name="width"> </param>
        public DisplayWidth(int width) { this.Width = width; }

        public int Width { get; set; }
    }
}
